package org.domain.rescue2011.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;

import es.us.isa.jdbl.domain.biblio.BookChapter;

@Name("bookChapter")
public class BookChapterList extends EntityQuery<BookChapter> {

	private static final String EJBQL = "select bookChapter from BookChapter bookChapter";

	// private static final String[] RESTRICTIONS = {
	// "lower(node.type) like lower(concat(#{nodeList.node.type},'%'))",
	// "lower(node.language) like lower(concat(#{nodeList.node.language},'%'))",
	// "lower(node.title) like lower(concat(#{nodeList.node.title},'%'))", };

	private BookChapter bookChapter = new BookChapter();

	public BookChapterList() {
		setEjbql(EJBQL);
		// setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public BookChapter getBookChapter() {
		return bookChapter;
	}

}
